package org.springcloud.plugin.strategy.gateway.configuration;

import org.springcloud.plugin.strategy.gateway.context.GatewayStrategyContextHolder;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * author: yanggld
 * date: 2019/12/21 21:59
 * version: 1.0
 * description: GatewayStrategyContextAutoConfiguration
 */
@Configuration
@AutoConfigureBefore(RibbonClientConfiguration.class)
public class GatewayStrategyContextAutoConfiguration {
    @Bean
    public GatewayStrategyContextHolder gatewayStrategyContextHolder() {
        return new GatewayStrategyContextHolder();
    }
}